package com.fantastic.mapper.zjs;

import com.fantastic.model.pojo.zjs.Advertise;

import java.util.List;

/**
 * @author: rxx
 * @since: 2024/6/2 20:24
 * @description: 广告信息表mapper接口
 */
public interface AdvertiseMapper {

    /**
     * 查询广告信息
     *
     * @param advertise
     * @return
     */
    List<Advertise> listAdvertises(Advertise advertise);

    /**
     * 查询单个广告信息
     *
     * @param advertiseId
     * @return
     */
    Advertise getAdvertise(Integer advertiseId);

    /**
     * 添加广告信息
     *
     * @param advertise
     * @return
     */
    Integer insertAdvertise(Advertise advertise);

    /**
     * 修改广告信息
     *
     * @param advertise
     * @return
     */
    Integer updateAdvertise(Advertise advertise);

    /**
     * 删除广告信息
     *
     * @param advertiseId
     * @return
     */
    Integer deleteAdvertise(Integer advertiseId);

}
